import {Component} from "@angular/core";

@Component({
    selector: 'my-app',
    template: `<h1>hello angularJs2</h1>
                <button (click)="demo()">click</button>
                `
})
export class AppComponent {
    demo():void {
        alert("button clicked...");
    }

}
